<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>Giveda® Embedded Midware: API/gObject_cpp11.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">Giveda® Embedded Midware
   &#160;<span id="projectnumber">1.2.0</span>
   </div>
   <div id="projectbrief">本文档受《版权法》、《版权公约》保护。深圳技达®版权所有</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="namespaces.html"><span>命名空间</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>文件成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>命名空间</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>文件</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>变量</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>类型定义</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>枚举</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>枚举值</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>友元</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>宏定义</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(11)"><span class="SelectionMark">&#160;</span>页</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_19ea4dbfe8f0e4681f60b9b97f7b5d11.html">API</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#enum-members">枚举</a>  </div>
  <div class="headertitle">
<div class="title">gObject_cpp11.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>使用c++11实现的 <a class="el" href="class_g_object.html" title="GObject 几乎是这个世界中所有元素的基类和祖先。 ">GObject</a>  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &lt;<a class="el" href="config__giveda_8h.html">config_giveda.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="g_global_8h.html">gGlobal.h</a>&gt;</code><br/>
<code>#include &lt;<a class="el" href="g_event_8h.html">gEvent.h</a>&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;string&gt;</code><br/>
<code>#include &lt;cxxabi.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;list&gt;</code><br/>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_slot_a_p_i.html">GSlotAPI&lt; F &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_slot_a_p_i_3_01_ret_07_args_8_8_8_08_4.html">GSlotAPI&lt; Ret(Args...)&gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_slot_cpp.html">GSlotCpp&lt; Receiver, F &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_slot_cpp_3_01_receiver_00_01_ret_07_args_8_8_8_08_4.html">GSlotCpp&lt; Receiver, Ret(Args...)&gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_signal.html">GSignal&lt; F &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_g_signal.html" title="GSignal 类用来定义信号，所述信号的函数类型为Ret (*)(Args...)。 比如：GSignal&lt;void(int)&gt; intSig;//定义一个函数类型为void intSig(int);...">GSignal</a> 类用来定义信号，所述信号的函数类型为Ret (*)(Args...)。<br/>
比如：GSignal&lt;void(int)&gt; intSig;//定义一个函数类型为void intSig(int); 比如：GSignal&lt;void(int, float)&gt; ifSig;//定义一个函数类型为void ifSig(int,  float);.  <a href="class_g_signal.html#details">更多...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_signal_3_01_ret_07_args_8_8_8_08_4.html">GSignal&lt; Ret(Args...)&gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_slot.html">GSlot</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_g_object.html">GObject</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_g_object.html" title="GObject 几乎是这个世界中所有元素的基类和祖先。 ">GObject</a> 几乎是这个世界中所有元素的基类和祖先。  <a href="class_g_object.html#details">更多...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:aa2ad9c27624efec8c3fce893e35bbc81"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_object__cpp11_8h.html#aa2ad9c27624efec8c3fce893e35bbc81">slots</a></td></tr>
<tr class="separator:aa2ad9c27624efec8c3fce893e35bbc81"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabbcb0bbcbcb6adcf20d63cc22f83649"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_object__cpp11_8h.html#aabbcb0bbcbcb6adcf20d63cc22f83649">signals</a>&#160;&#160;&#160;public</td></tr>
<tr class="separator:aabbcb0bbcbcb6adcf20d63cc22f83649"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d760c67b94b2b9763d7847c1db7590c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_object__cpp11_8h.html#a7d760c67b94b2b9763d7847c1db7590c">SIGNAL_TYPE</a>(SlotFuncType)&#160;&#160;&#160;list&lt;<a class="el" href="class_g_slot.html">GSlot</a>*&gt;</td></tr>
<tr class="separator:a7d760c67b94b2b9763d7847c1db7590c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70f1815b5287177f656f6d8492bb40ca"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_object__cpp11_8h.html#a70f1815b5287177f656f6d8492bb40ca">SIGNAL_POINTER</a>(SlotFuncType)&#160;&#160;&#160;list&lt;<a class="el" href="class_g_slot.html">GSlot</a>*&gt;*</td></tr>
<tr class="separator:a70f1815b5287177f656f6d8492bb40ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a114a77dc8914139d45197993391050d2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_object__cpp11_8h.html#a114a77dc8914139d45197993391050d2">SIGNAL_TYPE_ITERATOR</a>(SlotFuncType)&#160;&#160;&#160;list&lt;<a class="el" href="class_g_slot.html">GSlot</a>*&gt;::iterator</td></tr>
<tr class="separator:a114a77dc8914139d45197993391050d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bce4062dcf51ac3c8e4272a771c7d94"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_object__cpp11_8h.html#a8bce4062dcf51ac3c8e4272a771c7d94">SET_CLASS_NAME</a>(any_type)</td></tr>
<tr class="memdesc:a8bce4062dcf51ac3c8e4272a771c7d94"><td class="mdescLeft">&#160;</td><td class="mdescRight">如果你要在运行期获得某个对象的类名，可以使用此宏定义  <a href="#a8bce4062dcf51ac3c8e4272a771c7d94">更多...</a><br/></td></tr>
<tr class="separator:a8bce4062dcf51ac3c8e4272a771c7d94"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
枚举</h2></td></tr>
<tr class="memitem:a840bee69409114b9a31ecfca0995f9e2"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="g_object__cpp11_8h.html#a840bee69409114b9a31ecfca0995f9e2">E_SLOT_TYPE</a> { <a class="el" href="g_object__cpp11_8h.html#a840bee69409114b9a31ecfca0995f9e2a3fc6c5937b1d4f58d15eb8275f33a79d">C_SLOT_TYPE</a>, 
<a class="el" href="g_object__cpp11_8h.html#a840bee69409114b9a31ecfca0995f9e2aad0866792cbd0f4fcd3e795c1b64addb">CPP_SLOT_TYPE</a>
 }</td></tr>
<tr class="separator:a840bee69409114b9a31ecfca0995f9e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>使用c++11实现的 <a class="el" href="class_g_object.html" title="GObject 几乎是这个世界中所有元素的基类和祖先。 ">GObject</a> </p>
<dl class="section author"><dt>作者</dt><dd>明心 </dd></dl>
<dl class="section version"><dt>版本</dt><dd>1.0.0 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2019-2-6 </dd></dl>
</div><h2 class="groupheader">宏定义说明</h2>
<a class="anchor" id="a8bce4062dcf51ac3c8e4272a771c7d94"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SET_CLASS_NAME</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">any_type</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line"><span class="keyword">public</span>: \</div>
<div class="line">    virtual <span class="keyword">const</span> <span class="keywordtype">char</span> *className() const \</div>
<div class="line">    { \</div>
<div class="line">    static <span class="keywordtype">string</span> s_name; \</div>
<div class="line">    char* name = abi::__cxa_demangle(<span class="keyword">typeid</span>(any_type).name(), NULL, NULL, NULL); \</div>
<div class="line">    s_name = name; \</div>
<div class="line">    free(name); \</div>
<div class="line">    return s_name.c_str(); \</div>
<div class="line">    }</div>
</div><!-- fragment -->
<p>如果你要在运行期获得某个对象的类名，可以使用此宏定义 </p>

</div>
</div>
<a class="anchor" id="a70f1815b5287177f656f6d8492bb40ca"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SIGNAL_POINTER</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">SlotFuncType</td><td>)</td>
          <td>&#160;&#160;&#160;list&lt;<a class="el" href="class_g_slot.html">GSlot</a>*&gt;*</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a7d760c67b94b2b9763d7847c1db7590c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SIGNAL_TYPE</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">SlotFuncType</td><td>)</td>
          <td>&#160;&#160;&#160;list&lt;<a class="el" href="class_g_slot.html">GSlot</a>*&gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a114a77dc8914139d45197993391050d2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SIGNAL_TYPE_ITERATOR</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">SlotFuncType</td><td>)</td>
          <td>&#160;&#160;&#160;list&lt;<a class="el" href="class_g_slot.html">GSlot</a>*&gt;::iterator</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aabbcb0bbcbcb6adcf20d63cc22f83649"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define signals&#160;&#160;&#160;public</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="aa2ad9c27624efec8c3fce893e35bbc81"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define slots</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<h2 class="groupheader">枚举类型说明</h2>
<a class="anchor" id="a840bee69409114b9a31ecfca0995f9e2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="g_object__cpp11_8h.html#a840bee69409114b9a31ecfca0995f9e2">E_SLOT_TYPE</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">枚举值</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a840bee69409114b9a31ecfca0995f9e2a3fc6c5937b1d4f58d15eb8275f33a79d"></a>C_SLOT_TYPE</em>&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a840bee69409114b9a31ecfca0995f9e2aad0866792cbd0f4fcd3e795c1b64addb"></a>CPP_SLOT_TYPE</em>&#160;</td><td class="fielddoc">
</td></tr>
</table>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2019年 三月 23日 星期六 14:13:09 , 为 Giveda® Embedded Midware使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
